package modellayer;

/**
 * The Service class to create Service objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class Service
{
	private int serviceId;
	private String name;
	
	/**
	 * @param serviceId
	 * @param name
	 */
	
	
	/**
	 * Constructor for the Service class
	 */
	public Service(int serviceId, String name)
	{
		super();
		this.serviceId = serviceId;
		this.name = name;
	}

	/**
	 * Get method for the serviceId
	 * @return serviceId
	 */
	public int getServiceId()
	{
		return serviceId;
	}

	/**
	 * Get method for the serviceId
	 * @return serviceId
	 */
	public void setServiceId(int serviceId)
	{
		this.serviceId = serviceId;
	}

	/**
	 * Get method for the name
	 * @return name
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * Set method for the name
	 * @return name
	 */
	public void setName(String name)
	{
		this.name = name;
	}
	
	/**
	 * toString method, converts name to a string
	 * @return name
	 */
	@Override
    public String toString() {
        return this.name;
    }
}
